-- GENERATED SPELL FOR [Shadowmaster Grieve] --


function spell0_18720(pUnit, Event) --@Mortal Strike,n/a--
pUnit:FullCastSpellOnTarget(32736,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18720', 5322, 1)
end

function spell1_18720(pUnit, Event) --@Shadow Cleave,n/a--
pUnit:FullCastSpellOnTarget(32916,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18720', 607, 1)
end

function Sorts_18720(pUnit, Event)
local choix_sorts_18720 = math.random(0, 1)
if choix_sorts_18720 == 0 then
pUnit:RegisterEvent('spell0_18720', 1, 1)
end
if choix_sorts_18720 == 1 then
pUnit:RegisterEvent('spell1_18720', 1, 1)
end
end

function mob18720_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_18720', math.random(1500, 3000), 1)
end

function mob18720_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18720_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18720_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(18720, 1, 'mob18720_Action')
RegisterUnitEvent(18720, 2, 'mob18720_Leave')
RegisterUnitEvent(18720, 3, 'mob18720_Kill')
RegisterUnitEvent(18720, 4, 'mob18720_Die')
